package com.keyholesoftware.trango.employee.controller;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

import org.codehaus.jackson.annotate.JsonAutoDetect;
import org.codehaus.jackson.annotate.JsonMethod;

@JsonAutoDetect(value = { JsonMethod.FIELD, JsonMethod.GETTER }, fieldVisibility = JsonAutoDetect.Visibility.ANY)
public class JsonGridData implements Serializable {

	private static final long serialVersionUID = 7912031207722665732L;

	private String page;

	private String records;

	private Collection<?> rows;

	private String total;

	public JsonGridData() {
		super();
	}

	public JsonGridData(Integer total, Integer page, Long records, Collection<?> rows) {
		this();
		this.total = total + "";
		this.page = page + "";
		this.records = records + "";
		this.rows = rows;
	}

	public String getPage() {
		return this.page;
	}

	public String getRecords() {
		return this.records;
	}

	public Collection<?> getRows() {
		return this.rows;
	}

	public String getTotal() {
		return this.total;
	}

	public void setPage(String page) {
		this.page = page;
	}

	public void setRecords(String records) {
		this.records = records;
	}

	public void setRows(List<?> rows) {
		this.rows = rows;
	}

	public void setTotal(String total) {
		this.total = total;
	}
}
